{#include file="admin_header.htm"#}
<script src="js/Expand_Directory.js" type='text/javascript' language="javascript"></script>
<script src="ajax/ajax_category_jobs.js" type='text/javascript' language="javascript"></script>
<div class="admin_main_nr_dbox">
  <form id="form1" name="form1" method="post" action="?act=category_all_save">
    <table width="700" border="0" cellspacing="0" cellpadding="5" style="border-bottom:1px #CCCCCC solid; margin-bottom:8px;">
      <tr>
        <td width="533" height="25" style="font-size:14px;">&nbsp;職能職位分類</td>
        <td width="68" style="font-size:14px;"><input type="submit" name="Submit2" value="保存修改" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/></td>
        <td width="34" style="font-size:14px;"><input type="button" name="Submit" value="添加分類" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="window.location='?act=category_add'"/></td>
        <td width="35" style="font-size:14px;">&nbsp;</td>
      </tr>
    </table>
{#section name=category loop=$category_list#} 
<div class="jobs_category_box link_lan">
<div  class="jobs_category_box_leftimg">
{#if $category_list[category].id == $category_list.0.category_first and $category_list[category].id ==  $category_list.0.category_last#}
<img src="images/category_list/1.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menua0{#$category_list[category].id#}" style="cursor:pointer;display:none;"/>
<img src="images/category_list/2.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}');show_category('{#$category_list[category].id#}','{#$category_list.0.category_last#}')" id="left_menub0{#$category_list[category].id#}" style=" cursor:pointer"/>
{#elseif $category_list[category].id == $category_list.0.category_last#}
<img src="images/category_list_bottom/1.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menua0{#$category_list[category].id#}" style="cursor:pointer;display:none;"/>
<img src="images/category_list_bottom/2.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}');show_category('{#$category_list[category].id#}','{#$category_list.0.category_last#}')" id="left_menub0{#$category_list[category].id#}" style="cursor:pointer"/>
{#elseif $category_list[category].id == $category_list.0.category_first#}
<img src="images/category_list_top/1.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menua0{#$category_list[category].id#}" style="cursor:pointer;display:none;"/>
<img src="images/category_list_top/2.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}');show_category('{#$category_list[category].id#}','{#$category_list.0.category_last#}')" id="left_menub0{#$category_list[category].id#}" style=" cursor:pointer"/>
{#else#}
<img src="images/category_list_center/1.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}')" id="left_menua0{#$category_list[category].id#}" style="cursor:pointer;display:none;"/>
<img src="images/category_list_center/2.gif" width="30" height="30" align="absmiddle"  onclick="mainchgna('{#$category_list[category].id#}');show_category('{#$category_list[category].id#}','{#$category_list.0.category_last#}')" id="left_menub0{#$category_list[category].id#}" style="cursor:pointer"/>
{#/if#}
</div>
<div  class="jobs_category_box_center">
<input name="categoryname[]" type="text" class="article_category_input_a"  onfocus="this.className='article_category_input_c'"   onblur="this.className='article_category_input_a'" value="{#$category_list[category].categoryname#}" maxlength="20" style="color:#0033CC; width:220px;"/>
<span style="color:#666666; font-size:10px;">(id:{#$category_list[category].id#})</span>
<input name="y_id[]" type="checkbox" id="y_id[]" value="{#$category_list[category].id#}" checked="checked" style="display:none"/>
</div>
<div class="jobs_category_box_right">
排序:
<input name="category_order[]" type="text" class="article_category_input_a" style="width:30px; font-size:12px;"  onfocus="this.className='article_category_input_c'"   onblur="this.className='article_category_input_a'"  onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" value="{#$category_list[category].category_order#}" maxlength="3" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>&nbsp;&nbsp;<a href="?act=category_add&ParentID={#$category_list[category].id#}">此類下添加子類</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="?act=edit_category&y_id={#$category_list[category].id#}">修改</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="return confirm('確定要刪除嗎？')" href="?act=del_category&y_id={#$category_list[category].id#}">刪除</a>
</div>
<div class="clear"></div>
</div>
<div id="left_menu0{#$category_list[category].id#}" style="display:none;" class="jobs_category_box link_lan">
</div>
{#/section#}
<table width="700" border="0" cellspacing="0" cellpadding="5" style="border-top:1px #CCCCCC solid; margin-top:8px;">
        <tr>
          <td width="533" height="25" style="font-size:14px;">&nbsp;</td>
          <td width="68" style="font-size:14px;"><input type="submit" name="Submit22" value="保存修改" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/></td>
          <td width="34" style="font-size:14px;"><input type="button" name="Submit3" value="添加分類" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" onclick="window.location='?act=category_add'"/></td>
          <td width="35" style="font-size:14px;">&nbsp;</td>
        </tr>
    </table>
	  <!--循環體 -->
  </form>
  <table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="40">&nbsp;</td>
    </tr>
  </table>
</div>
{#include file="admin_footer.htm"#}
</body>
</html>
